@if(Session::has('flash_success'))
    <div class="alert alert-success alert-dismissable" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <p class="mb-0"><i class="fa fa-fw fa-check mr-1"></i> {{ session('flash_success') }}</p>
    </div>
@elseif(Session::has('flash_warning'))
    <div class="alert alert-warning alert-dismissable" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <p class="mb-0"><i class="fa fa-fw fa-info-circle mr-1"></i> {{ session('flash_warning') }}</p>
    </div>
@elseif(Session::has('flash_info'))
    <div class="alert alert-info alert-dismissable" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <p class="mb-0"><i class="fa fa-fw fa-info-circle mr-1"></i> {{ session('flash_info') }}</p>
    </div>
@elseif(Session::has('flash_error'))
    <div class="alert alert-danger alert-dismissable" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <p class="mb-0"><i class="fa fa-fw fa-times-circle mr-1"></i> {{ session('flash_danger') }}</p>
    </div>
@endif

@if ($errors->any())
    <div class="alert alert-danger alert-dismissable" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <h3 class="alert-heading font-w300 my-2">Error</h3>
        @foreach ($errors->all() as $k => $error)
            <p class="mb-0">{{ ($k+1) . '.' . $error }}</p>
        @endforeach

    </div>
@endif

